package com.wuyou.designPatterns.builder.framework;

public abstract class AbstractBuilderInterface<T extends AbstractTitleBuilder> implements Builder {
    protected Document document = new Document();

    public AbstractTitleBuilder<T> builderFileType(String fileType){
        document.setFileType(fileType);
        return (AbstractTitleBuilder<T>)this;
    }

    public AbstractTitleBuilder<T> builderFileName(String fileName) {
        document.setFileName(fileName);
        return (AbstractTitleBuilder<T>) this;
    }
}
